Crate anticipate

source ·
Expand description

Control a pseudo-terminal similar to expect(1), fork of expectrl with minimal dependencies and features.

Modules§

  • Types for writing and formatting logs to stdout.
  • Platform independent abstraction over an os process.
  • REPL manages a session with a known prompt.

Structs§

  • Any matches uses all provided lookups and returns a match from a first successfull match.
  • Captures is a represention of matched pattern.
  • Eof consider a match when an EOF is reached.
  • NBytes matches N bytes from the stream.
  • Regex tries to look up a match by a regex.
  • Session represents a spawned process and it’s streams.

Enums§

  • ControlCode represents the standard ASCII control codes wiki
  • Error type for the library.
  • Types of operating system signals
  • Possible return values from wait() or waitpid().

Traits§

  • Trait for types that can read and write to child programs.
  • Needle an interface for search of a match in a buffer.

Functions§

Type Aliases§